package com.home.statistics.client;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.core.client.GWT;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.RootPanel;

/**
 * User: volyn
 * Date: 11.03.12
 * Time: 15:17
 */
public class TotalStatistic implements EntryPoint {
    private final Messages messages = GWT.create(Messages.class);
    public void onModuleLoad() {
        Button helloButton = new Button(messages.helloButton());
        helloButton.addClickHandler(new ClickHandler() {
            @Override
            public void onClick(ClickEvent clickEvent) {
                Window.alert(messages.helloMessage());
            }
        });
        RootPanel.get().add(helloButton);
    }
}
